import  {createRouter,createWebHistory} from 'vue-router'
import type {RouteRecordRaw} from 'vue-router'

let routes:Array<RouteRecordRaw>=[

   {
    path:"/",
    name:"bigdata",
    component:()=>import("@/views/bigScreen/index.vue")
  },
   {
    path:"/login",
    name:"login",
    component:()=>import("@/views/Login/index.vue")
  },
   { //主页面
    path:"/layout",
    name:"layout",
    component:()=>import("@/views/layout/index.vue"),
    children:[
      { //视频模块
        path:"video",
        name:"video",
        component:()=>import("@/views/Video/index.vue")
      },
       { //视频模块
        path:"admin",
        name:"admin",
        component:()=>import("@/views/Admin/index.vue")
      },
       { //课程添加模块
        path:"courseadd",
        name:"courseadd",
        component:()=>import("@/views/CourseAdd/index.vue")
      }
    ]
  }
]

let router=createRouter({
  history:createWebHistory(),
  routes
})
export default router